//https://momentjs.com/

const moment = require('moment');
moment.locale('zh-cn'); //调整成中文 

// 开始使用 

const time = new Date();

console.log(time);

const r1 = moment().format('MMMM Do YYYY, h:mm:ss a');
console.log(r1);

const r2 = moment("20111031", "YYYYMMDD").fromNow();
console.log(r2);


const r3 =moment().format('LTS');
console.log(r3);